/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.andersen.web.beans;

/**
 *
 * @author Corvus 11
 */
public class NewComponentCommandForm {
    
    private static final long ID_INVALID = -1l;
    private static final long ID_NOT_DEFINED = 0l;
    
    private long typeId = ID_INVALID;
    private String description;
    private String buyDateString;
    private String warrantyEndDateString;
    private String serial;
    private String typeName;
    private boolean validationError = false;

    private long officeId = ID_INVALID;
    private long employeeId = ID_NOT_DEFINED;
    private long computerId = ID_NOT_DEFINED;
    private String status;
    private int step = 1;

    public long getTypeId() {
        return typeId;
    }

    public String getDescription() {
        return description;
    }

    public String getBuyDateString() {
        return buyDateString;
    }

    public String getWarrantyEndDateString() {
        return warrantyEndDateString;
    }

    public String getSerial() {
        return serial;
    }

    public String getTypeName() {
        return typeName;
    }

    public boolean isValidationError() {
        return validationError;
    }

    public long getOfficeId() {
        return officeId;
    }

    public long getEmployeeId() {
        return employeeId;
    }

    public long getComputerId() {
        return computerId;
    }

    public String getStatus() {
        return status;
    }

    public void setTypeId(long typeId) {
        this.typeId = typeId;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setBuyDateString(String buyDateString) {
        this.buyDateString = buyDateString;
    }

    public void setWarrantyEndDateString(String warrantyEndDateString) {
        this.warrantyEndDateString = warrantyEndDateString;
    }

    public void setSerial(String serial) {
        this.serial = serial;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public void setValidationError(boolean validationError) {
        this.validationError = validationError;
    }

    public void setOfficeId(long officeId) {
        this.officeId = officeId;
    }

    public void setEmployeeId(long employeeId) {
        this.employeeId = employeeId;
    }

    public void setComputerId(long computerId) {
        this.computerId = computerId;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getStep() {
        return step;
    }

    public void setStep(int step) {
        this.step = step;
    }
    

    @Override
    public String toString() {
        return "NewComponentCommandForm{" + 
                "typeId=" + typeId + 
                ", description=" + description + 
                ", buyDateString=" + buyDateString + 
                ", warrantyEndDateString=" + warrantyEndDateString + 
                ", serial=" + serial + 
                ", typeName=" + typeName + 
                ", validationError=" + validationError + 
                ", officeId=" + officeId + 
                ", employeeId=" + employeeId + 
                ", computerId=" + computerId + 
                ", status=" + status + 
                '}';
    }
    
    
}
